<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib uri="/struts-tags" prefix="s" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
		<base href="<%=basePath%>">
		
  
    
    <title>login</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	
	<link rel="stylesheet" type="text/css" href="./css/style.css">
	<script type="text/javascript">
		function logining(){
		//alert("login....");
			var fo=document.getElementById("myform");
			fo.submit();
		}
	</script>



		<title>login</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<link rel="stylesheet" type="text/css" href="./css/style.css">
	</head>

    <script type="text/javascript">
  	function change(){
  	alert("ok");
  		 document.getElementById('img').src='image.action?temp'+Math.random();
  	}
  </script>
  
<body>
  <div id="background">
     <form action="loginAction.action" method="post" id="myform">
     <div id="butt">
   		用户名:<input type="text" name="username" /><br/><br/>
   		密码:&nbsp; <input type="password" name="password" /><br/>
   		验证码:<input type="text" name="imagecode" style="width:80px;"/>  <img alt="验证码" id="img" src="image.action"> 
   		<br/>
  &nbsp; &nbsp;
 	 <font size="2" color="red">${loginerror}</font>
	  <br/>
   		<input type="button"  id="button1"/> &nbsp; &nbsp;
   		<input type="button"  id="button2"/> 
  		</div>
  		<input type="button"  id="button3"  onClick="logining()"/> 
   </form>
   </div>
  </body>

</html>
